package shiye;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-03-30
 * Time: 10:47
 */
//懒汉式
public class Singleton1 {
    private static Singleton1 ingleton;

    private Singleton1() {

    }
    public static Singleton1 singleton() {
        if(ingleton == null) {
            ingleton = new Singleton1();
        }
        return ingleton;
    }
}
